using System;
using System.Xml;
using System.Xml.Serialization;
namespace SERP.DAO{
	/********************************BEGIN UsersEntity****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:09/03/2013 19:09:04</para>
	/// <para>Class Name: UsersEntity</para>
	/// <para>Description: ClassUsersEntity store data of table Users</para>
	///</summary>

	[Serializable]
	public partial class UsersEntity{


		private bool _InternalChangedIsNullUserId=true;
		private bool _IsNullUserId=true;
		private bool _InternalChangedIsNullUserName=true;
		private bool _IsNullUserName=true;
		private bool _InternalChangedIsNullPassword=true;
		private bool _IsNullPassword=true;
		private bool _InternalChangedIsNullDisplayName=true;
		private bool _IsNullDisplayName=true;
		private bool _InternalChangedIsNullBirthDay=true;
		private bool _IsNullBirthDay=true;
		private bool _InternalChangedIsNullEmail=true;
		private bool _IsNullEmail=true;
		private bool _InternalChangedIsNullGender=true;
		private bool _IsNullGender=true;
		private bool _InternalChangedIsNullAddress=true;
		private bool _IsNullAddress=true;
		private bool _InternalChangedIsNullPhone=true;
		private bool _IsNullPhone=true;
		private bool _InternalChangedIsNullIsActived=true;
		private bool _IsNullIsActived=true;
		private bool _InternalChangedIsNullUserType=true;
		private bool _IsNullUserType=true;
		private int _UserId;
		private string _UserName;
		private string _Password;
		private string _DisplayName;
		private DateTime _BirthDay;
		private string _Email;
		private Byte _Gender;
		private string _Address;
		private string _Phone;
		private bool _IsActived;
		private Byte _UserType;
		[XmlElement(ElementName = "IsNullUserId")]
		public bool IsNullUserId{
			get{return _IsNullUserId;}
			set{if(!_InternalChangedIsNullUserId)_IsNullUserId=value;}
		}
		[XmlElement(ElementName = "IsNullUserName")]
		public bool IsNullUserName{
			get{return _IsNullUserName;}
			set{if(!_InternalChangedIsNullUserName)_IsNullUserName=value;}
		}
		[XmlElement(ElementName = "IsNullPassword")]
		public bool IsNullPassword{
			get{return _IsNullPassword;}
			set{if(!_InternalChangedIsNullPassword)_IsNullPassword=value;}
		}
		[XmlElement(ElementName = "IsNullDisplayName")]
		public bool IsNullDisplayName{
			get{return _IsNullDisplayName;}
			set{if(!_InternalChangedIsNullDisplayName)_IsNullDisplayName=value;}
		}
		[XmlElement(ElementName = "IsNullBirthDay")]
		public bool IsNullBirthDay{
			get{return _IsNullBirthDay;}
			set{if(!_InternalChangedIsNullBirthDay)_IsNullBirthDay=value;}
		}
		[XmlElement(ElementName = "IsNullEmail")]
		public bool IsNullEmail{
			get{return _IsNullEmail;}
			set{if(!_InternalChangedIsNullEmail)_IsNullEmail=value;}
		}
		[XmlElement(ElementName = "IsNullGender")]
		public bool IsNullGender{
			get{return _IsNullGender;}
			set{if(!_InternalChangedIsNullGender)_IsNullGender=value;}
		}
		[XmlElement(ElementName = "IsNullAddress")]
		public bool IsNullAddress{
			get{return _IsNullAddress;}
			set{if(!_InternalChangedIsNullAddress)_IsNullAddress=value;}
		}
		[XmlElement(ElementName = "IsNullPhone")]
		public bool IsNullPhone{
			get{return _IsNullPhone;}
			set{if(!_InternalChangedIsNullPhone)_IsNullPhone=value;}
		}
		[XmlElement(ElementName = "IsNullIsActived")]
		public bool IsNullIsActived{
			get{return _IsNullIsActived;}
			set{if(!_InternalChangedIsNullIsActived)_IsNullIsActived=value;}
		}
		[XmlElement(ElementName = "IsNullUserType")]
		public bool IsNullUserType{
			get{return _IsNullUserType;}
			set{if(!_InternalChangedIsNullUserType)_IsNullUserType=value;}
		}
		[XmlElement(ElementName = "UserId")]
		public int UserId{
			get{return _UserId;}
			set{
				_UserId=value;
				if(_UserId!=null){
					_IsNullUserId=false;
					_InternalChangedIsNullUserId=true;
				}
			}
		}
		[XmlElement(ElementName = "UserName")]
		public string UserName{
			get{return _UserName;}
			set{
				_UserName=value;
				if(_UserName!=null){
					_IsNullUserName=false;
					_InternalChangedIsNullUserName=true;
				}
			}
		}
		[XmlElement(ElementName = "Password")]
		public string Password{
			get{return _Password;}
			set{
				_Password=value;
				if(_Password!=null){
					_IsNullPassword=false;
					_InternalChangedIsNullPassword=true;
				}
			}
		}
		[XmlElement(ElementName = "DisplayName")]
		public string DisplayName{
			get{return _DisplayName;}
			set{
				_DisplayName=value;
				if(_DisplayName!=null){
					_IsNullDisplayName=false;
					_InternalChangedIsNullDisplayName=true;
				}
			}
		}
		[XmlElement(ElementName = "BirthDay")]
		public DateTime BirthDay{
			get{return _BirthDay;}
			set{
				_BirthDay=value;
				if(_BirthDay!=null){
					_IsNullBirthDay=false;
					_InternalChangedIsNullBirthDay=true;
				}
			}
		}
		[XmlElement(ElementName = "Email")]
		public string Email{
			get{return _Email;}
			set{
				_Email=value;
				if(_Email!=null){
					_IsNullEmail=false;
					_InternalChangedIsNullEmail=true;
				}
			}
		}
		[XmlElement(ElementName = "Gender")]
		public Byte Gender{
			get{return _Gender;}
			set{
				_Gender=value;
				if(_Gender!=null){
					_IsNullGender=false;
					_InternalChangedIsNullGender=true;
				}
			}
		}
		[XmlElement(ElementName = "Address")]
		public string Address{
			get{return _Address;}
			set{
				_Address=value;
				if(_Address!=null){
					_IsNullAddress=false;
					_InternalChangedIsNullAddress=true;
				}
			}
		}
		[XmlElement(ElementName = "Phone")]
		public string Phone{
			get{return _Phone;}
			set{
				_Phone=value;
				if(_Phone!=null){
					_IsNullPhone=false;
					_InternalChangedIsNullPhone=true;
				}
			}
		}
		[XmlElement(ElementName = "IsActived")]
		public bool IsActived{
			get{return _IsActived;}
			set{
				_IsActived=value;
				if(_IsActived!=null){
					_IsNullIsActived=false;
					_InternalChangedIsNullIsActived=true;
				}
			}
		}
		[XmlElement(ElementName = "UserType")]
		public Byte UserType{
			get{return _UserType;}
			set{
				_UserType=value;
				if(_UserType!=null){
					_IsNullUserType=false;
					_InternalChangedIsNullUserType=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END UsersEntityBase*****************************************/
	/*****************************************************************************************************/
}

